Related Vulnerabilities: CVE-2021-28834  

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated. This causes a security issue in GitLab CE/EE affecting all versions starting from 13.2, allowing unauthorised authenticated users to execute arbitrary code on the server.

Severity Critical

Remote Yes

Type Arbitrary code execution

Description

Kramdown before 2.3.1 does not restrict Rouge formatters to the Rouge::Formatters namespace, and thus arbitrary classes can be instantiated. This causes a security issue in GitLab CE/EE affecting all versions starting from 13.2, allowing unauthorised authenticated users to execute arbitrary code on the server.

AVG-1709 ruby-kramdown 2.3.0-1 Critical Vulnerable

AVG-1710 gitlab 13.9.3-1 13.9.4-1 Critical Fixed

https://github.com/gettalong/kramdown/pull/708
https://github.com/gettalong/kramdown/commit/d6a1cbcb2caa2f8a70927f176070d126b2422760
https://about.gitlab.com/releases/2021/03/17/security-release-gitlab-13-9-4-released/
https://gitlab.com/gitlab-org/gitlab/-/issues/324452
https://gitlab.com/gitlab-org/gitlab/-/commit/179329b5c3c118924fb242dc449d06b4ed6ccb66